package main

import "fmt"


//嵌套结构体
//type person struct{
//	Name string
//	Age int
//	Contact struct{
//		Phone, City string
//		Code int
//	}
//}

//结构体的组合
type Contact struct{
	Phone, City string
	Code int
}

type person struct{
	Name string
	Age int
	Contact
}

type Student struct{
	Name string
	Contact
}


func main() {
	fmt.Println("vim-go")
	p1 := person{Name:"wlf", Age:20, Contact:Contact{Phone:"182xxx",Code:202}}
	fmt.Println(p1)
}

